extends Panel

signal retry

onready var label = get_node('vbox/label')
onready var start_text = label.get_text()
onready var btn_retry = get_node('vbox/btn_retry')

func _ready():
	showLoadingText()


func showErrorText(text):
	label.set_text('连接服务器失败，原因：\n' + text)
	btn_retry.show()


func showLoadingText():
	label.set_text(start_text)
	btn_retry.hide()

func on_retry():
	showLoadingText()
	emit_signal('retry')
